package com.spring.satoken.controller;

import cn.dev33.satoken.stp.StpUtil;
import cn.dev33.satoken.util.SaResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: awesome-spring
 * @description: 用户视图
 * @author: Alex Wu
 * @createDate: 2025-01-20 10:01
 **/
@RestController
@RequestMapping("/goods/")
public class GoodsController {

    // 测试登录，浏览器访问： http://localhost:8081/user/doLogin?username=zhang&password=123456
    @RequestMapping("getGoods")
    public String getGoods() {
        return "获取商品信息";
    }
}
